jsx3.Class.defineClass(
        "tibco.admin.monitormanage.uicomponents.page.serviceView.tabContent.operations.Operations", //the full name of the class to create
        jsx3.lang.Object, //  extends
        [tibco.admin.monitormanage.uicomponents.page.serviceView.ServiceInstanceTabInterface], // implements
        function (plugin) {
        	plugin.getServiceInstanceIdSubject = "com.tibco.admin.monitormanage.uicomponents.page.serviceView.tabContent.operations.Operations.getServiceInstanceId";
        
            plugin.instance = null
            
            plugin.prototype.serviceInstanceId;

            plugin.getInstance = function(args) {
                if(!this.instance) {
                    this.instance = new tibco.admin.monitormanage.uicomponents.page.serviceView.tabContent.operations.Operations();
                }
                return this.instance;
            }

            plugin.prototype.getNamespace = function() {
               return "tibco.admin";
            }
            
            plugin.prototype.getTabText = function() {
				return tibco.admin.Main.getServer().getDynamicProperty("@MM@general@OperationsTitle");
            	//return "Operations";
            }
            
            plugin.prototype.updateComponent = function(serviceInstanceIdVal) {
				var message = { serviceInstanceId:serviceInstanceIdVal };
				this.serviceInstanceId = serviceInstanceIdVal;
            	tibco.admin.monitormanage.general.PageBusUtils.publish(plugin.getServiceInstanceIdSubject, message);
            }

            plugin.prototype.loadComponent = function(parent) {
                var operationsBlock = tibco.admin.Main.loadUIResource(parent, this.getNamespace(), "tibco/admin/monitormanage/uicomponents/page/serviceView/tabContent/operations/components/operations.xml", true);
                
        		if(!tibco.admin.monitormanage || !tibco.admin.monitormanage.uicomponents || !tibco.admin.monitormanage.uicomponents.table || !tibco.admin.monitormanage.uicomponents.table.interfaces || !tibco.admin.monitormanage.uicomponents.table.interfaces.Interfaces)
                { tibco.admin.Main.loadClass("tibco/admin/monitormanage/uicomponents/table/interfaces/Interfaces.js", this.getNamespace()); }
                var interfacesObj = tibco.admin.Main.loadUIResource(operationsBlock, this.getNamespace(), "tibco/admin/monitormanage/uicomponents/table/interfaces/components/interfaces.xml", true);
                interfacesObj.setUpComponent("_MM_svcInst", true, this.serviceInstanceId);
            }
            
            plugin.prototype.tabClicked = function(objEvent) {
            	tibco.admin.monitormanage.uicomponents.dropdown.timeframe.Timeframe.showTimeframe(tibco.admin.monitormanage.uicomponents.page.serviceView.ServiceView.serviceInstanceScreenId);
        	}

        });